package com.hziee.graduate.ticket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;


@EqualsAndHashCode(callSuper = true)
@TableName("t_room")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Room extends Model<Room> {

    @TableId(type = IdType.AUTO)
    private Long roomId;
    //该影厅属于哪么影影院
    private Long cinemaId;
    //影厅的名字
    private String roomName;
    //该影厅有几张票
    private Integer roomContain;
    // 影院类型：小中大
    private Integer roomType;
    // 座位排石
    private Integer roomRow;
    // 座位列数
    private Integer roomCol;
    // 影院是否开放
    private Integer roomOpen;
    // 创建时间
    private String createTime;
    // 影厅的楼层
    private Integer roomFloor;

    private Integer delFlag;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.roomId;
    }
}

